package br.com.controleVendas.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;

@SuppressWarnings("rawtypes")
public abstract class GenericEntity<T extends GenericEntity> implements Serializable
{
    private static final long      serialVersionUID = 1L;

    private List<Criterion>        listCriterion;

    private List<Order>            listOrder;

    private HashMap<String, Short> tables;

    private List<String>           listColumns;

    public abstract String getNmEntity();

    public List<Criterion> getListCriterion()
    {
        return listCriterion;
    }

    public void setListCriterion(List<Criterion> listCriterion)
    {
        this.listCriterion = listCriterion;
    }

    public HashMap<String, Short> getTables()
    {
        return tables;
    }

    public List<String> getListColumns()
    {
        return listColumns;
    }

    public void setListOrder(List<Order> listOrder)
    {
        this.listOrder = listOrder;
    }

    public List<Order> getListOrder()
    {
        return listOrder;
    }

}
